package com.atguigu.springcloud.alibaba.controller;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.atguigu.springcloud.entities.CommonResult;

/**
 * @Author: shikong
 * @Date: 2020/8/11 23:16
 */

public class CustomerBlockHandler {

    public static CommonResult handlerException(BlockException BlockException){

        return new CommonResult(200,"按照自定义名称限流1","error");

    }

    public static CommonResult handlerException2(BlockException BlockException){

        return new CommonResult(200,"按照自定义名称限流2","error");

    }
}
